<extend name="Base/common"/>
<block name="header">
{:hook('mobileTopNav',array('title'=>$meta_title))}
</block>
<block name="body">
  <div class="shop">
    <!-- 已添加商品列表 -->
    <div class="item-list clearfix" id="Z_load_itemlist">
      <notempty name="lists">
      <include file="itemList"/>
      <else/>
      <div class="content-padded text-center">
       空空如也
      </div>
      </notempty>
    </div>
  </div>
</block>

<block name="footer">
  <div class="bar bar-tab item-act">
    <span class="pull-left">
      <a href="{:U('Shops/selectItem')}" class="btn btn-block btn-positive btn-tab" id="Z_quick_buy"><i class="icon icon-add"></i>添加商品</a>
    </span>
    <span class="pull-right">
      <a href="{:U('Shops/detail', array('uid' => UID))}" class="btn btn-block btn-negative btn-tab"><i class="icon icon-shop"></i> 查看我的店铺</a>
    </span>
  </div>  
  <style type="text/css">
.item-act > span.pull-right, .item-act > span.pull-left{ width: 50% }
.item-act > span > .btn-tab .icon{ top: 0px; }
  </style>


</block>

<block name="script">
  <script type="text/javascript">
    seajs.use(['common', 'shop'], function(common, shop){
      var url = window.location.href;
      common.loadmore(url);
      shop.removeItem();
    });
  </script>
</block>